import request from '../../request/request_axios.js'

// 获取所有医生信息
export const getAllDoctors = () => {
    return request({
        url: '/doctor/public/query',
        method: 'get'
    })
}

// 根据科室名称获取医生列表
export const getDoctorsByDepartment = (departmentName) => {
    return request({
        url: '/doctor/public/queryAllByDepartmentName',
        method: 'get',
        params: { departmentName }
    })
}

// 根据工号查询医生信息
export const getDoctorByWorkId = (workId) => {
    return request({
        url: '/doctor/public/getByWorkId',
        method: 'get',
        params: { workId }
    })
}

// 查询未来七天的排班信息
export const getNextWeekSchedules = (workId) => {
    return request({
        url: '/scheduleRules/public/queryNextWeek',
        method: 'get',
        params: { workId }
    })
}